//
//  WeiboUserNode.h
//  yuikemall
//
//  Created by yuike5 yuike5 on 12-2-7.
//  Copyright (c) 2012年 yuike. All rights reserved.
//

#import <Foundation/Foundation.h>
//#import "WeiboInitProtocol.h"

@interface WeiboUserNode : NSObject
{
    long long idx; //"id": 1404376560,
    NSString* screen_name; //"screen_name": "zaku",
    NSString* profile_image_url; //"profile_image_url": "http://tp1.sinaimg.cn/1404376560/50/0/1",
    NSString* domain; //"domain": "zaku",
    NSString* avatar_large; //"avatar_large": "http://tp1.sinaimg.cn/1404376560/180/0/1",
    
    NSString* atName;
    NSString* atNameScreen;
    
    BOOL isBoy;
    BOOL isGirl;
}

-(id) initWithSinaUser:(NSDictionary*)dict;
-(id) initWithTencComment:(NSDictionary*)dict;
-(id) initWithTencWeibo:(NSDictionary*)dict;
-(id) initWithTencFriends:(NSDictionary*)dict;

-(id) initWithQQ:(NSDictionary*)dict;


-(NSString*) sinaDomain;
@property (nonatomic, copy) NSString* atName;
@property (nonatomic, copy) NSString* atNameScreen;

#define GenderBOY  1
#define GenderGIRL 2
#define GenderUNKNOW 0

@property (nonatomic, assign) long long idx;
@property (nonatomic, copy) NSString* screen_name;
@property (nonatomic, copy) NSString* profile_image_url;
@property (nonatomic, copy) NSString* domain;
@property (nonatomic, copy) NSString* avatar_large;
@property (nonatomic, readonly) int gender;
@end

